const {getSET} = require("../../utils/util")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    toplist:[]
  },


  onLoad: function (options) {
    getSET().then(res=>{
     console.log(res);
     var toplist=[]
    var toplist = res.data.data.list
   
    
    this.setData({
      toplist
    })
    })
  },
  toPages(event){
    var {aid} = event.currentTarget.dataset
    console.log(aid);
    wx.navigateTo({
      url: `/pages/detail/detail?id=${aid}`,
  });
  }

  
})